﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class ToolRecordInfo
    {
        public int ID { get; set; }
        public string Record_Mode { get; set; }
        public DateTime Record_Date { get; set; }
        public string Work_Shop { get; set; }
        public string Tool_Type { get; set; }
        public string ProductType { get; set; }
        public string ProductTypeName { get; set; }
        public string Tool_Code { get; set; }
        public string Tool_Name { get; set; }
        public string Tool_Type_Spec { get; set; }
        public string Tool_EnableSN { get; set; }
        public int Amount { get; set; }
        public string Taker { get; set; }
        public string Taker_ID { get; set; }
        public string Distribution_Area { get; set; }
        public string Tool_State { get; set; }
        public string Repair_Record { get; set; }
        public string Remark { get; set; }

        public int Amount_Input { get { return this.Record_Mode.Equals("入库") ? this.Amount : 0; }  }
        public int Amount_Output { get { return this.Record_Mode.Equals("出库") ? this.Amount : 0; }  }
        public int Amount_WriteOff { get { return this.Record_Mode.Equals("报废") ? this.Amount : 0; }  }
    }
}
